package com.baizhi.cmfz.restController;

import com.baizhi.cmfz.entity.Banner;
import com.baizhi.cmfz.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RequestMapping("/banner")
@RestController
public class RestBannerControler {
    @Autowired
    private BannerService bannerService;
    @GetMapping("/showPageBanner/{count}")
    @ResponseBody
    public List<Banner> showPageBanner(@PathVariable int count){
        System.out.println(count);
        return bannerService.showFive(count);
    }
}
